package com.woniuxy.oa.entity;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;

public class Attendance implements Serializable{
	
	private static final long serialVersionUID = 1L;
	
	private Integer am_id;	//考勤id
	private Integer am_userid;	//用户id
	private String am_username;	//用户姓名
	@JsonFormat(pattern = "yyyy-MM-dd")
	private String am_date;	//考勤日期
	@JsonFormat(pattern = "HH:mm:ss")
	private String am_signtime;	//签到时间
	@JsonFormat(pattern = "HH:mm:ss")
	private String am_signbacktime;	//签退时间
	private String am_userip;	//用户ip地址
	private String am_note;	//迟到原因备注
	
	
	public Attendance() {
		super();
		// TODO Auto-generated constructor stub
	}


	public Attendance(Integer am_id, Integer am_userid, String am_username, String am_date, String am_signtime,
			String am_signbacktime, String am_userip, String am_note) {
		super();
		this.am_id = am_id;
		this.am_userid = am_userid;
		this.am_username = am_username;
		this.am_date = am_date;
		this.am_signtime = am_signtime;
		this.am_signbacktime = am_signbacktime;
		this.am_userip = am_userip;
		this.am_note = am_note;
	}


	public Integer getAm_id() {
		return am_id;
	}


	public void setAm_id(Integer am_id) {
		this.am_id = am_id;
	}


	public Integer getAm_userid() {
		return am_userid;
	}


	public void setAm_userid(Integer am_userid) {
		this.am_userid = am_userid;
	}


	public String getAm_username() {
		return am_username;
	}


	public void setAm_username(String am_username) {
		this.am_username = am_username;
	}


	public String getAm_date() {
		return am_date;
	}


	public void setAm_date(String am_date) {
		this.am_date = am_date;
	}


	public String getAm_signtime() {
		return am_signtime;
	}


	public void setAm_signtime(String am_signtime) {
		this.am_signtime = am_signtime;
	}


	public String getAm_signbacktime() {
		return am_signbacktime;
	}


	public void setAm_signbacktime(String am_signbacktime) {
		this.am_signbacktime = am_signbacktime;
	}


	public String getAm_userip() {
		return am_userip;
	}


	public void setAm_userip(String am_userip) {
		this.am_userip = am_userip;
	}


	public String getAm_note() {
		return am_note;
	}


	public void setAm_note(String am_note) {
		this.am_note = am_note;
	}


	@Override
	public String toString() {
		return "Attendance [am_id=" + am_id + ", am_userid=" + am_userid + ", am_username=" + am_username + ", am_date="
				+ am_date + ", am_signtime=" + am_signtime + ", am_signbacktime=" + am_signbacktime + ", am_userip="
				+ am_userip + ", am_note=" + am_note + "]"+"\n";
	}
	
}
